//
//  XZ_BaseWKWebViewController.h
//  Project_Demo
//
//  Created by caoxiaozhu on 2018/7/12.
//  Copyright © 2018年 caoxiaozhu. All rights reserved.
//

#import "XZ_BaseViewController.h"
#import <WebKit/WebKit.h>
//@protocol XZ_mkWebViewDelegate // 代理传值方法
//
//-(void)setActionName:(NSString *)name;

//@end

@interface XZ_BaseWKWebViewController : XZ_BaseViewController<WKNavigationDelegate,UIScrollViewDelegate,WKUIDelegate,WKScriptMessageHandler>

@property(nonatomic,strong)WKWebView *mainWebView;
@property(nonatomic,strong)NSString *urlStr;
@property(nonatomic,strong)NSString *localHtmlName;
@property(nonatomic,strong)void(^JSActionBlock)(NSString *name, id body);
//@property(nonatomic,strong)id<XZ_mkWebViewDelegate>delegate;
//@property(nonatomic,strong)NSString *actionName;
//@property(nonatomic,strong)NSString *jsName;

-(void)showWebViewWith:(NSString *)url localHtml:(NSString *)fileName jsActionNameArr:(NSArray *)nameArr;
//-(void)setJSName:(NSString *)jsName;
@end
